<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /**
         *  第一次尝试 ajax
         * 
        */
        var xhr = new XMLHttpRequest()

        xhr.open("GET","http://222.85.202.49:5000/v1/video/page",true)
        
        xhr.onload = function(){
            // 拿到后端返回的信息
            // console.log(xhr.response);
            // 
            var res = JSON.parse(xhr.response)
            console.log(res);
        }
        
        xhr.send()

    </script>
    
</body>
</html>